]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Only reset to the default level on unlocked latched levels
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Sep 2023 17:01:29 +0000 (19:01 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Fri, 8 Sep 2023 19:42:38 +0000 (19:42 +0000)
commitbc3b890e75d77ea39755b93353547cf5f39fa006
treef6456b33a26f7a3414ae5912271ae1fba5b867db
parent08f3ad3835877ec4073d72ba2dc3f563183a9ecc
keyboard: Only reset to the default level on unlocked latched levels

Reportedly, non-alphanumeric key levels were able to stick by
happenstance, and let the user press multiple keys until explicitly
switching to a different mode. Reportedly, this broke, switching to
the default level after the first key press on the additional levels.

Since we have this information in the OSK key models (each level has
a "mode" field to either default/latched/locked), retrieve this
information for them for each level, and only reset to the default
level if on one of those latched levels, and the relevant key was not
locked through long-press.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5763
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2945>
js/ui/keyboard.js